<!DOCTYPE html>
<meta charset="UTF-8">
<h2>ComboTree Actions</h2>
<div style="margin: 10px 0">
	<a href="javascript:void(0)" data-type="linkbutton" onclick="getValue()">GetValue</a>
	<a href="javascript:void(0)" data-type="linkbutton" onclick="setValue()">SetValue</a>
	<a href="javascript:void(0)" data-type="linkbutton" onclick="disable()">Disable</a>
	<a href="javascript:void(0)" data-type="linkbutton" onclick="enable()">Enable</a>
</div>
<div style="margin: 10px 0; width: 270px;">
	<input id="cc" data-type="combotree" 
		data-define="method:'get',url: '${rc.contextPath}/assets/ui/jww/demo/testdata/tree_data1.json',required:true"
		style="width: 200px;">
</div>
<script type="text/javascript">
	function getValue() {
	    var val = $('#cc').combotree('getValue');
	    alert(val);
    }
    function setValue() {
	    $('#cc').combotree('setValue', '122');
    }
    function disable() {
	    $('#cc').combotree('disable');
    }
    function enable() {
	    $('#cc').combotree('enable');
    }
</script>
